Skip to content

feat(awk): implement phase 2 basics#240

Open
matt-dz wants to merge 10 commits into
codex/awk-phase-1from
codex/awk-phase-2
Open

feat(awk): implement phase 2 basics#240
matt-dz wants to merge 10 commits into
codex/awk-phase-1from
codex/awk-phase-2

Conversation

@matt-dz
Copy link
Copy Markdown
Collaborator

@matt-dz matt-dz commented May 7, 2026

Summary

Extends phase 1 with the first control-flow, formatting, and scalar builtin features needed for practical inline awk programs. This phase adds if/else, next, printf, and common string/numeric functions while deliberately leaving arrays, loops, regex FS, and field rebuilds to later phases.

  • Adds if / else, next, and printf.
  • Adds length, substr, index, tolower, toupper, and int.
  • Updates awk docs, symbol allowlists, Go tests, and scenario coverage.

Validation

  • make fmt
  • go test ./builtins/awk ./builtins/tests/awk ./analysis
  • go test ./tests -run 'TestShellScenarios/.*/cmd/awk/'
  • go test ./...

Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 1. Please review the current head after f207997 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f20799790b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/eval.go
Comment thread builtins/awk/eval.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 2. Please review the current head after 1288d52 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1288d52681

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/printf.go Outdated
Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 3. Please review the current head after a1d41e1 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1d41e1697

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/parser.go
Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 4. Please review the current head after 8dcb947 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dcb947ddb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 5. Please review the current head after e0be142 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0be142a4e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/parser.go
Comment thread builtins/awk/parser.go
Comment thread builtins/awk/eval.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 6. Please review the current head after 78d93cb and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78d93cbfae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/printf.go Outdated
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 7. Please review the current head after d9fbed6 and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9fbed6a6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread builtins/awk/parser.go
Comment thread builtins/awk/parser.go
Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 8. Please review the current head after 24f0fce and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

Copy link
Copy Markdown
Collaborator Author

matt-dz commented May 7, 2026

@codex review this PR

Codex-only review loop pass 8 retry. The prior pass 8 request did not receive an acknowledgement after 10 minutes. Please review the current head after 24f0fce and leave actionable inline findings only. Use P0/P1/P2/P3 severity prefixes.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Base automatically changed from codex/awk-phase-1 to codex/awk-bwk-tests May 8, 2026 13:05
@matt-dz matt-dz force-pushed the codex/awk-bwk-tests branch from cf898c3 to d8e1cb4 Compare May 8, 2026 13:08
@matt-dz matt-dz force-pushed the codex/awk-phase-2 branch from 24f0fce to e90c4d1 Compare May 8, 2026 14:54
@matt-dz matt-dz changed the base branch from codex/awk-bwk-tests to main May 8, 2026 14:57
@matt-dz matt-dz changed the base branch from main to codex/awk-phase-1 May 8, 2026 15:18
@matt-dz matt-dz changed the title [codex] Implement awk phase 2 basics awk: implement phase 2 basics May 11, 2026
@matt-dz matt-dz changed the title awk: implement phase 2 basics feat(awk): implement phase 2 basics May 11, 2026
@matt-dz matt-dz force-pushed the codex/awk-phase-2 branch from 38cc495 to b65debd Compare May 11, 2026 15:46
@matt-dz matt-dz force-pushed the codex/awk-phase-1 branch from 1fb92f6 to 576e671 Compare May 11, 2026 15:46
@matt-dz matt-dz marked this pull request as ready for review May 11, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant